package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.FabContractMain;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2023-8-15 10:06:18
 */
@Repository
public interface FabContractMainMapper {
    int insert(FabContractMain record);

    int insertSelective(FabContractMain record);

    int multiInsert(List<FabContractMain> list);

    int updateByPrimaryKey(FabContractMain record);

    int updateByPrimaryKeySelective(FabContractMain record);

    // 根据主键删除
    int deleteByPrimaryKey(Long id);
    // 根据主键查询
    FabContractMain selectByPrimaryKey(Long id);
    // 根据主键删除
    int deleteByPrimaryKey(String client_id);
    // 根据主键查询
    FabContractMain selectByPrimaryKey(String client_id);

    List<FabContractMain> selectAll();

    int save(FabContractMain record);
    int multiSave(List<FabContractMain> list);

    //================= 下面是 Example 代码 ==================
    List<FabContractMain> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") FabContractMain record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") FabContractMain record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    FabContractMain getNext(Long id);
    FabContractMain getPrev(Long id);
    FabContractMain getFirst();
    FabContractMain getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}